package com.chance.cc.crawler.prod.command.schedule.news.baidu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.baiduzhishu.ZhiShuRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

public class BaiDuZhiShuCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
        //百度指数信息采集
        publicCrawlerScheduleJob(ZhiShuRealtimeCrawlerSchedulerJob.crawlerScheduler());
        //delCrawlerJob(ZhiShuRealtimeCrawlerSchedulerJob.crawlerScheduler());
    }

    private static void publicCrawlerScheduleJob(CrawlerJob crawlerScheduler) {
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerScheduler.generateCrawlerTriggerKey(),device_name_3);
    }
    //删除任务
    public static void delCrawlerJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_3);
    }
}
